package file.Practice;

import java.io.File;
import java.io.FileFilter;

public class Ss {
    public static void main(String[] args) {
        File dir = new File("./src//file");
        if (dir.isDirectory()) {

        FileFilter f = new FileFilter() {
            @Override
            public boolean accept(File file){
                return file.getName().toString().contains("F");
            }
        };
        File[] files = dir.listFiles(f);
        for (File file : files) {
            System.out.println(file.toString().substring(11));
        }}
    }
}
